const { defineConfig } = require('@vue/cli-service')

module.exports = {
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:9090',
        changeOrigin: true,
        pathRewrite:{
          '^/api' : 'http://localhost:8080' // 重写请求
      }

      },
     
    }
  }
}
